package com.dissertation.model;

import com.dissertation.pojo.Favorite;
import groovy.transform.EqualsAndHashCode;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

/**
 * @author cong
 * @date 2018/5/12
 */
@EqualsAndHashCode(callSuper = true)
@Document(collection = "collections")
public class Collections {

    @Id
    private String id;

    private String column;//收藏夹栏目

    private String adminID;

    private List<Favorite> favoriteList; //每个栏目对应的科研项目列表

    public String getAdminID() {
        return adminID;
    }

    public void setAdminID(String adminID) {
        this.adminID = adminID;
    }

    public void setColumn(String column) {
        this.column = column;
    }

    public void setFavoriteList(List<Favorite> favoriteList) {
        this.favoriteList = favoriteList;
    }

    public String getColumn() {
        return column;
    }

    public List<Favorite> getFavoriteList() {
        return favoriteList;
    }
}
